home *** CD-ROM | disk | FTP | other *** search
- Path: uunet!sun-barr!cronkite.Central.Sun.COM!jethro!exodus!austin.eds.com
- From: mayoff@austin.eds.com (Rob Mayoff)
- Newsgroups: comp.sources.x
- Subject: v14i079: tclock -- transparent clock, Patch1, Part01/01
- Message-ID: <21240@exodus.Eng.Sun.COM>
- Date: 9 Oct 91 01:23:39 GMT
- References: <csx-14i079-tclock@uunet.UU.NET>
- Sender: news@exodus.Eng.Sun.COM
- Lines: 86
- Approved: argv@sun.com
-
- Submitted-by: mayoff@austin.eds.com (Rob Mayoff)
- Posting-number: Volume 14, Issue 79
- Archive-name: tclock/patch1
- Patch-To: tclock: Volume 14, Issue 17
-
- Thanks to Chris Sherman and Jean Charles Gregoire for letting me know about
- these bugs in tclock 1.0. I don't know if anything was posted to
- comp.sources.bugs about these, because the day after I submitted the code to
- comp.sources.x my news feed lost the disk with his news spool on it and hasn't
- gotten it fixed as of this mailing. :-(
-
- The bugs:
-
- 1) A call to XrmMergeDatabases was incorrect. It did not fail on my SPARC,
- but causes core dumps on other machines.
- 2) For System V users, the SIGALRM handler now calls signal(3) to keep
- itself installed.
- 3) Apparently, some people have problems with tabs in Imakefiles, so I
- converted them to spaces.
-
- rob
- ---- Cut here ----
- diff -c ../save/Imakefile ./Imakefile
- *** ../save/Imakefile Thu Aug 29 18:01:47 1991
- --- ./Imakefile Thu Aug 29 17:58:48 1991
- ***************
- *** 1,7 ****
- ! DEFINES = ExtensionDefines
- SYS_LIBRARIES = -lm
- LOCAL_LIBRARIES = $(XLIB)
- SRCS = tclock.c
- ! OBJS = tclock.o
-
- ComplexProgramTarget(tclock)
- --- 1,7 ----
- ! DEFINES = ExtensionDefines
- SYS_LIBRARIES = -lm
- LOCAL_LIBRARIES = $(XLIB)
- SRCS = tclock.c
- ! OBJS = tclock.o
-
- ComplexProgramTarget(tclock)
- diff -c ../save/patchlevel.h ./patchlevel.h
- *** ../save/patchlevel.h Thu Aug 29 18:01:47 1991
- --- ./patchlevel.h Thu Aug 29 17:58:40 1991
- ***************
- *** 1 ****
- ! Version 1.0, Patchlevel 0
- --- 1 ----
- ! Version 1.0, Patchlevel 1
- diff -c ../save/tclock.c ./tclock.c
- *** ../save/tclock.c Thu Aug 29 18:01:47 1991
- --- ./tclock.c Thu Aug 29 18:05:11 1991
- ***************
- *** 237,242 ****
- --- 237,243 ----
- times = *localtime(&clock);
- times.tm_hour = times.tm_hour * 5 + times.tm_min / 12;
- reshape();
- + signal(SIGALRM, sigalrm); /* For SysV lusers */
- }
-
- unsigned long
- ***************
- *** 340,346 ****
- exit(1);
-
- db = XrmGetStringDatabase(tclockDefaults);
- ! XrmMergeDatabases(XrmGetStringDatabase(XResourceManagerString(display), &db));
-
- sprintf(fn, "%s/.Xdefaults", getenv("HOME"));
- if(access(fn, R_OK) == 0)
- --- 341,347 ----
- exit(1);
-
- db = XrmGetStringDatabase(tclockDefaults);
- ! XrmMergeDatabases(XrmGetStringDatabase(XResourceManagerString(display)), &db);
-
- sprintf(fn, "%s/.Xdefaults", getenv("HOME"));
- if(access(fn, R_OK) == 0)
-
- --
- Dan Heller
- Z-Code Software O'Reilly && Associates Comp-sources-x:
- President Senior Writer comp-sources-x@uunet.uu.net
- argv@z-code.com argv@ora.com [^^^ this address only!]
-